package com.mxf.code.controller;

import com.mxf.code.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mxf
 * @version 1.0
 * @description: TODO
 * @date 2023/5/8
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("do")
    public void test01() {
        for (int i = 0; i < 10; i++) {
            new Thread(() -> {
                testService.doService(1L);
            }).start();
        }
    }
}
